#include "manager.h"
using namespace std;


Manager & Manager::instance()
{
    static Manager inst;
    return inst;
}

void Manager::add(IPlugin *plugin)
{
    plugins.push_back(plugin);
}

void Manager::execute()
{
    for (int i = 0; i < (int)plugins.size(); i++) {
        plugins[i]->execute();
    }
}
